package org.xinghai.sql.main.generator.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Options;
import org.xinghai.sql.main.generator.domain.ColumnElements;
import org.xinghai.sql.main.generator.domain.DatabaseTables;
import org.xinghai.sql.main.generator.domain.TableColumns;

import java.util.List;

/**
* @author lijia
* &#064;description  针对表【database_tables】的数据库操作Mapper
* &#064;createDate  2025-07-28 11:43:08
* &#064;Entity  generator.domain.DatabaseTables
 */
public interface DatabaseTablesMapper extends BaseMapper<DatabaseTables> {

    List<TableColumns> getTableColumnsByTableId(Integer tableId);
    @Options(useCache = false)
    Integer getTableIdByTableName(String tableName);

    List<DatabaseTables> getTableByDatabaseName(String databaseName);

    Integer getTableIdByTableNameFromDatabaseName(String tableName, String databaseName);
}




